import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'index',
      redirect:'/hello',
      meta:{ name : '主页'}
    },
    {
      path: '/hello',
      name: 'hello',
      component: resolve => require(['../components/Hello.vue'], resolve),
      meta:{ name : '欢迎测试页'}
    }
  ]
})
